package com.google.maps.overlays
{
import com.google.maps.LatLng;

public class XjuMarker extends Marker
{
	private var _cat:int;
	private var _catName:String;
	private var _name:String;
	private var _des:String;
	private var _url:String;
	private var _photoURL:String;
	
	// Constructor
	public function XjuMarker(arg0:LatLng, catName_:String, name_:String, des_:String, url_:String=null, photoURL_:String = null,arg1:MarkerOptions=null) {
		super(arg0, arg1);
		_catName = catName_;
		name = name_;
		des = des_;
		url = url_;
		photoURL = photoURL_;
//		var options:MarkerOptions = new MarkerOptions();
//		options.icon = new XJUMarkerIcon();
//		setOptions(options);
	}
	
	public function get name():String {
		return _name;
	}
	
	public function set name(name_:String):void {
		_name = name_;
	}
	
	public function get des():String {
		return _des;
	}
	
	public function set des(des_:String):void {
		_des = des_;
	}
	
	public function get url():String {
		return _url;
	}
	
	public function set url(url_:String):void {

		if(url_ == null || url_.length <= 0) {
			url_ = "http://www.xju.edu.cn";
		}
		_url = url_;
	}
	
	public function get photoURL():String {
		return _photoURL;
	}
	
	public function set photoURL(photoURL_:String):void {
		if(photoURL_ == null || photoURL_.length <= 0 ) {
			photoURL_ = "http://www.lib.xju.edu.cn/index/grgm/xwfg3b.jpg";
		}
		_photoURL = photoURL_;
	}
} // End of class
} // End of package